package io.renren.modules.miniapp.controller;

import io.renren.common.utils.R;
import io.renren.modules.communityService.dto.DbUserQuestionnaireDTO;
import io.renren.modules.communityService.dto.MiniAppDbUserQuestionnaireSaveDTO;
import io.renren.modules.communityService.service.DbUserQuestionnaireService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * 用户问卷调查
 *
 * @author chenweilong
 * @email 1433471850@qq.com
 * @date 2021-03-22 10:10:59
 */
@RestController
@RequestMapping("miniapp/dbuserquestionnaire")
@Api(value = "小程序用户填写问卷调查",tags = "小程序用户填写问卷调查")
public class MiniAppDbUserQuestionnaireController {
    @Autowired
    private DbUserQuestionnaireService dbUserQuestionnaireService;

    /**
     * 填写问卷调查
     */
    @PostMapping("/save")
    @ApiOperation(value = "填写问卷调查",notes = "填写问卷调查")
    public R save(@RequestBody MiniAppDbUserQuestionnaireSaveDTO dto){
		dbUserQuestionnaireService.save(dto);
        return R.ok();
    }

}
